﻿#ifndef HANDLER_H
#define HANDLER_H

#include <QObject>
#include <QQmlApplicationEngine>
#include <QQmlComponent>
#include "PluginInfo.h"

class Handler : public QObject
{
    Q_OBJECT
public:
    Handler();

    static Handler* instance();

    void load(QQmlApplicationEngine* engine);

    Q_INVOKABLE QQmlComponent* getBtnComponent();
    Q_INVOKABLE QQmlComponent* getPageComponent();

signals:
    void loadComplete();

private:
    PluginInfo *m_info;
};

#endif // HANDLER_H
